package com.helmlabs.grouper.cms.model;

import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.hibernate.annotations.CollectionOfElements;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name="layout")
public abstract class AbstractLayout {
	
	private Long id;
	
	public abstract String render(HttpServletRequest req, HttpServletResponse res);
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="layout_id")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
